package com.ben.xinyue.seckill.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: xinyue
 * @date: 2020/09/04 09:36
 * @description: 
 * @modifiedBy:
 * @version: 1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("miaosha_goods")
public class MiaoshaGoods implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀的商品表
	 */
	@TableId
	private Long id;
	/**
	 * 商品Id
	 */
	private Long goodsId;
	/**
	 * 秒杀价
	 */
	private BigDecimal miaoshaPrice;
	/**
	 * 库存数量
	 */
	private Integer stockCount;
	/**
	 * 秒杀开始时间
	 */
	private Date startDate;
	/**
	 * 秒杀结束时间
	 */
	private Date endDate;

}
